package com.dongdongshop.core;

import com.dongdongshop.Enum.ResultEnum;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

public class SpecificPrint implements Serializable {
    private Integer member;
    private String content;
    private Object data;
    private Boolean aBoolean;


    public static SpecificPrint response(ResultEnum resultEnum){
        return new SpecificPrint(resultEnum.getCode(),resultEnum.getMessage());
    }

    public Integer getMember() {
        return member;
    }

    public void setMember(Integer member) {
        this.member = member;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Object getData() {
        return data;
    }

    public SpecificPrint setData(Object data) {
        this.data = data;
        return this;
    }

    public SpecificPrint(Integer member, String content, boolean b, MultipartFile myFile) {
        this.member = member;
        this.content = content;
    }


    public SpecificPrint(Integer code, String message, boolean b, String url) {
    }

    public SpecificPrint(Integer member, String content) {
        this.member = member;
        this.content = content;
        this.data = data;
    }
}
